package com.wuyangnju.healthclub.dao.util;

import java.util.List;

import javax.persistence.EntityManager;

public interface GenericDao<K, E> {

	public void create(EntityManager em, E entity);

	public List<E> retrieve(EntityManager em);

	public E retrieve(EntityManager em, K id);

	public void update(EntityManager em, K id, E entity);

	public void delete(EntityManager em, K id);

}
